import {Http} from '@/utils'

export function _getHouseDetail(id) {
  return Http({
    method: 'get',
    url: '/house/shops/' + id
  })
}

export function _getCommentReplyList(id, data) {
  return Http({
    method: 'get',
    url: '/reply/house/' + id,
    params: {
      ...data
    }
  })
}

export function _postReply(data) {
  return Http({
    url: '/reply',
    body: data
  })
}

export function _isCollection(id) {
  return Http({
    url: '/collection/isCollection',
    method: 'get',
    params: {
      houseId: id
    }
  })
}

export function _isOrder(id) {
  return Http({
    url: '/order/isOrder',
    method: 'get',
    params: {
      id
    }
  })
}

export function _postCollection(id) {
  return Http({
    url: '/collection',
    method: 'post',
    body: {
      houseId: id
    }
  })
}

export function _delCollection(id) {
  return Http({
    url: '/collection/collection',
    method: 'delete',
    body: {
      houseId: id
    }
  })
}
